﻿using System.Collections.Generic;

namespace JNPF.Basics.Models.VisualDev
{
    public class ColumnDataModel
    {
        public List<SearchList> searchList { get; set; }
        public List<ColumnList> columnList { get; set; }
        public int type { get; set; }
        public string defaultSidx { get; set; }
        public string sort { get; set; }
        public bool hasPage { get; set; }
        public int pageSize { get; set; }
        public string treeTitle { get; set; }
        public string treeDataSource { get; set; }
        public string treeDictionary { get; set; }
        public string treeDbTableFieldRelation { get; set; }
        public string treeDbTable { get; set; }
        public string treeDbTableField { get; set; }
        public string treeDbTableFieldParentId { get; set; }
        public string treeDbTableFieldShow { get; set; }
        public List<BtnsList> btnsList { get; set; }
        public List<BtnsList> columnBtnsList { get; set; }
    }

    public class SearchList
    {
        public ConfigModel __config__ { get; set; }
        public SlotModel __slot__ { get; set; }
        public string shadow { get; set; }
        public string placeholder { get; set; }
        public Style style { get; set; }
        public bool clearable { get; set; }
        public string prefixicon { get; set; }
        public string suffixicon { get; set; }
        public object maxlength { get; set; }
        public bool showwordlimit { get; set; }
        public bool _readonly { get; set; }
        public bool disabled { get; set; }
        public string __vModel__ { get; set; }
        public string value { get; set; }
        public List<ConfigModel> children { get; set; }
    }

    public class Style
    {
        public string width { get; set; }
    }

    public class ColumnList
    {
        public string label { get; set; }
        public string prop { get; set; }
        public string align { get; set; }
        public object width { get; set; }
    }

    public class BtnsList
    {
        public string value { get; set; }
        public string icon { get; set; }
        public string label { get; set; }
    }
}
